//导入 Http 类, 填写正确的路径, 相对路径和绝对路径 
import { Http } from '../utils/http';
import { cache } from '../utils/util';


class Bourne {
  static async placeOrder(id) {
    return await Http.request({
      url: 'wechat/order/place_order_card',
      data: {
        product_id: id,
        distributor_id: 1
      }
    })
  }

  static async payment(order_no) {
    return await Http.request({
      url: 'wechat/pay/unify_pay',
      data: { order_no: cache('order_no') }
    })
  }
}


export { Bourne }